/**
 * @USER: Administrator
 * @DATE: 2024/9/22 上午8:53
 * @VERSION: 1.0.0
 */
public class LC2022 {
    public static void main(String[] args) {

    }

    public int[][] construct2DArray(int[] original, int m, int n) {
        if (m*n!=original.length) return new int[0][0];
        int[][] res = new int[m][n];
        for (int i = 0; i < original.length; i++) {
            res[i/n][i%n] = original[i];
        }

        return res;
    }
}
